$OpenBSD: patch-configure,v 1.4 2013/08/09 19:04:49 ajacoutot Exp $
--- configure.orig	Mon Jan 28 23:29:08 2008
+++ configure	Fri Dec 25 22:50:32 2009
@@ -9164,6 +9164,11 @@ fi
 
 	  SOUND_SRC="sound-src";
         else
+          if eval "test x$sndio_sound = xyes"; then
+  	      CFLAGS="$CFLAGS -DSNDIO_SOUND"
+  	      SND_LIBS="-lsndio -lm"
+	      SOUND_SRC="sound-src";
+          else
           if eval "test x$sun_sound = xyes"; then
   	      echo "Using solaris sound system"
   	      CFLAGS="$CFLAGS -DSUN_SOUND"
@@ -9172,6 +9177,7 @@ fi
   	  else
   	      echo "No suitable sound system found."
               sound="no"
+          fi
           fi
         fi
       fi
